#ifndef _JOB_HPP_
#define _JOB_HPP_
class Job {
public:
  Job() : timestamp(0), n_completions(0) {}

  double completion(double t) {
    ++n_completions;
    double res = t - timestamp;
    timestamp = t;
    return res;
  }

  void reset_completions() {
    n_completions = 0;
  }

  double get_n_completions() {
    return n_completions;
  }

private:
  double timestamp;
  unsigned long n_completions;
};
#endif
